package com.fc.test.model.custom;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * describe:活动用户中奖信息实体
 *
 * @author xugang
 * @date 2018/9/20 0:56
 */
public class TEventsTurntable implements Serializable {
    private static final long serialVersionUID = -1130367668059448736L;

    // 自增ID
    private int id;

    // 用户姓名
    private String username;

    // 手机号码
    private String mobilePhone;

    // 中奖内容
    private String prize;

    // 中奖时间
    private Date awardTime;

    // 中奖时间(文本格式)
    private String showAwardTime;

    // 是否领奖(0未领;1已领)
    private int isCashingPrize;

    // 领奖时间
    private Date cashingPrizeTime;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getMobilePhone() {
        return mobilePhone;
    }

    public void setMobilePhone(String mobilePhone) {
        this.mobilePhone = mobilePhone;
    }

    public String getPrize() {
        return prize;
    }

    public void setPrize(String prize) {
        this.prize = prize;
    }

    public Date getAwardTime() {
        return awardTime;
    }

    public void setAwardTime(Date awardTime) {
        this.awardTime = awardTime;
        try {
            SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
            String strTime = dateFormat.format(awardTime);
            setShowAwardTime(strTime);
        } catch (Exception e) {

        }
    }

    public int getIsCashingPrize() {
        return isCashingPrize;
    }

    public void setIsCashingPrize(int isCashingPrize) {
        this.isCashingPrize = isCashingPrize;
    }

    public Date getCashingPrizeTime() {
        return cashingPrizeTime;
    }

    public void setCashingPrizeTime(Date cashingPrizeTime) {
        this.cashingPrizeTime = cashingPrizeTime;
    }

    public String getShowAwardTime() {
        return showAwardTime;
    }

    public void setShowAwardTime(String showAwardTime) {
        this.showAwardTime = showAwardTime;
    }
}
